package com.example.riceexambackend.common.errorcode;

/**
 * service层错误码常量
 */
public interface ServiceErrorCodeConstants {
    // ===== 用户业务异常 =====
    ErrorCode USER_REG_PARAM_NULL = new ErrorCode(100, "用户注册信息为空!");
    ErrorCode USER_REG_PWD_ERROR = new ErrorCode(101, "用户注册密码非法!");
    ErrorCode USER_REG_ACCOUNT_ERROR = new ErrorCode(102, "用户注册账号非法!");
    ErrorCode USER_REG_MAIL_ERROR = new ErrorCode(103, "用户注册邮箱非法!");
    ErrorCode USER_REG_IDENTITY_ERROR = new ErrorCode(104, "用户注册身份非法!");
    ErrorCode USER_REG_ACCOUNT_EXISTS = new ErrorCode(105, "用户注册账号已存在!");
    ErrorCode USER_REG_PHONE_EXISTS = new ErrorCode(106, "用户注册电话号码已存在!");
    ErrorCode USER_LOGIN_NOT_EXISTS = new ErrorCode(107, "用户登录身份不存在!");
    ErrorCode USER_LOGIN_PARAM_NULL = new ErrorCode(108, "用户登录参数为空!");
    ErrorCode USER_LOGIN_ACCOUNT_ERROR = new ErrorCode(109, "用户登录账户格式错误!");
    ErrorCode USER_LOGIN_CODE_ERROR = new ErrorCode(110, "用户登录验证码错误!");
    ErrorCode USER_LOGIN_IDENTITY_ERROR = new ErrorCode(111, "用户登录身份错误!");
    ErrorCode USER_LOGIN_PWD_ERROR = new ErrorCode(112, "用户登录密码错误!");
    // ===== 验证码业务异常 =====
    ErrorCode USER_VERIFY_PHONE_ERROR = new ErrorCode(201, "用户验证电话号码格式错误!");
    ErrorCode USER_VERIFY_SEND_ERROR = new ErrorCode(202, "用户发送验证码失败!");
    ErrorCode USER_CURRENT_PARAMS_NULL = new ErrorCode(203, "获取当前登录用户参数为空!");
    ErrorCode USER_CURRENT_ERROR = new ErrorCode(204, "获取当前登录用户错误!");
    // ===== 题型业务异常 =====
    ErrorCode QUESTION_TYPE_ADD_PARAM_NULL = new ErrorCode(301, "新增题型参数为空!");
    ErrorCode QUESTION_TYPE_ADD_PARAM_ERROR = new ErrorCode(302, "新增题型参数错误!");
    ErrorCode QUESTION_TYPE_ADD_NAME_EXISTS = new ErrorCode(303, "新增题型名称已存在!");
    ErrorCode QUESTION_TYPE_UPDATE_PARAM_NULL = new ErrorCode(304, "修改题型参数为空!");
    ErrorCode QUESTION_TYPE_UPDATE_PARAM_ERROR = new ErrorCode(305, "修改题型参数错误!");
    ErrorCode QUESTION_TYPE_DELETE_PARAM_NULL = new ErrorCode(306, "删除题型参数为空!");
    ErrorCode QUESTION_TYPE_DELETE_PARAM_ERROR = new ErrorCode(307, "删除题型参数错误!");
    // ===== 题目业务异常 =====
    ErrorCode QUESTION_ADD_PARAM_NULL = new ErrorCode(401, "新增题目参数为空!");
    ErrorCode QUESTION_ADD_PARAM_ERROR = new ErrorCode(402, "新增题目参数错误!");
    // ===== 试卷业务异常 =====
    ErrorCode EXAM_ADD_PARAM_NULL = new ErrorCode(501, "新增试卷参数为空!");
    ErrorCode EXAM_ADD_PARAM_ERROR = new ErrorCode(502, "新增试卷参数错误!");
    ErrorCode EXAM_AUTO_PARAM_NULL = new ErrorCode(503, "自动组卷参数为空!");
    ErrorCode EXAM_AUTO_PARAM_ERROR = new ErrorCode(504, "自动组卷参数错误!");
    ErrorCode EXAM_VIEW_PARAM_ERROR = new ErrorCode(505, "查看试卷参数错误!");
    ErrorCode EXAM_ATTEND_PARAM_NULL = new ErrorCode(506, "参加考试参数为空!");
    ErrorCode EXAM_ATTEND_PARAM_ERROR = new ErrorCode(507, "参加考试参数错误!");
    ErrorCode EXAM_SUBMIT_PARAM_NULL = new ErrorCode(508, "提交试卷参数为空!");
    ErrorCode EXAM_SUBMIT_PARAM_ERROR = new ErrorCode(509, "提交试卷参数错误!");

}
